#!/usr/bin/python

# Save an instance

from pyodm.document import Document
from pyodm.fields import *

class TestDocument(Document):
    field1 = StringField()
    field2 = IntegerField()

obj = TestDocument()
obj.field1 = "field1"
obj.field2 = 16
obj.save()
print obj.getKey()
